package com.asiainfo.argumentResolver;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;

public interface IArgumentResolver {

    /**
     *
     * 判断当前的类是继承于ArgumentResolver
     * @param type
     * @param paramIndex
     * @param method
     * @return
     */
    public boolean support(Class<?> type, int paramIndex, Method method);

    public Object argumentResolver(HttpServletRequest request, HttpServletResponse response, Class<?> type, int paramIndex, Method method);

}
